#include<stdio.h>
// typedef 用于简化代码，相当于起别名.
typedef struct /*student*/
{
	int id;
	char name[20];
	int age;
} student;   /*这里可以随便起别名，如 STUDENT*/

int main(){
	student stu = {120,"张三",25};
	printf("序号：%d, 姓名：%s, 年龄：%d\n", stu.id, stu.name, stu.age);
	student *st = &stu;
	printf("姓名:%s\n", st->name);
	return 0;
}


